
<!--suppress CssUnusedSymbol -->
<script setup>
import {onMounted} from "vue";
import {useAccountStore} from "~/utils/store/account.js";
import {useQuasar} from "quasar";

const $q = useQuasar()

const account_store = useAccountStore()

onMounted(() => {
  let refresh = $q.cookies.get('refresh')
  if (refresh) {
    account_store.refreshToken(refresh)
  }
})
</script>

<template lang="pug">
transition(enter-active-class="animated fadeIn" leave-active-class="animated fadeOut" appear mode="out-in")
  router-view()


</template>

<style>

html,
body {
  height: 100vh;
  font-family: "CascadiaCode", "阿里妈妈数黑体 Bold", Avenir, Helvetica, Arial, sans-serif;
  overflow: auto;
}


#app {
  font-family: "CascadiaCode", "阿里妈妈数黑体 Bold", Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  height: 100vh;
  padding: 0;
  width: 100%;
  margin: 0;
}

div {
  font-family: "CascadiaCode", "阿里妈妈数黑体 Bold", Avenir, Helvetica, Arial, sans-serif;
}
</style>
